
f2 = open('testdemo2.txt', mode='r', encoding='enca')
# a = f2.read()
# print(a)
# f2.close()
while True:
    a = f2.readline()
    if a == '':
        print('结束了')
        break
    print(a)